package im.xz.cn.xiacore.events.lobbyProtect;

import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerDropItemEvent;

import java.util.UUID;

public class www implements Listener {
    @EventHandler
    public void qwq(PlayerDropItemEvent event) {
        Player player = event.getPlayer();

        try {
            if (player.getWorld().getName().contains("lobby")) {
                UUID uuid = player.getUniqueId();
                String uid = uuid.toString();
                try {
                    if (uid.equalsIgnoreCase("ea2343c4-0f8f-44f4-9274-e6f08eda3c1d")) {

                    }else {
                        event.setCancelled(true);
                    }

                }catch (NullPointerException ignore) {

                }
            }
        }catch (NullPointerException ignore) {

        }


    }
}